package be.nepherte.movmanager.client;

import java.util.ArrayList;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;;

/**
 * This class represents the database service that is available remotely and the functions a server-side implementation of this class should have.  
 * This interface corresponds with DatabaseServiceAsync and the server-side database implementations. All the methods defined here should also be
 * in the other two classes. To make RPC calls, use DatabaseServiceAsync, which will return the asynchronous result.
 * <p>
 * This file is part of MovManager.
 * </p>
 * <p>
 * MovManager is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * </p>
 * <p>
 * MovManager is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * </p>
 * <p>
 * You should have received a copy of the GNU General Public License
 * along with MovManager.  If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses</a>.
 * </p>
 * 
 * @author	Bart Verhoeven
 * @since	23/05/2009
 * @version 0.1
 */
@RemoteServiceRelativePath("databaseService")
public interface DatabaseService extends RemoteService {
	
	/**
	 * Get a list with all the movies available in the database.
	 * 
	 * @return a list with all the movies available in the database, empty if no movies are found
	 */
	public ArrayList<Movie> getMovies();
	
	/**
	 * Get a list with all genres linked to one or more movies in the database.
	 * 
	 * @return	a list with all the genres linked to one ore more movies in the database, empty if no genres are found
	 */
	public ArrayList<String> getGenres();
}
